package org.zht.dormpro.auth.service;

import org.zht.dormpro.auth.bean.Tree;
import org.zht.dormpro.auth.model.SysDept;

import java.util.List;

public interface IDeptService {
    Tree<SysDept> listDeptTree();

    List<SysDept> listDept();

    SysDept getDeptById(Integer id);

    boolean addDept(SysDept dept);

    boolean editDept(SysDept newDept);

    boolean deleteDept(Integer deptId);
}
